import { getTopList } from '@/api/topList'

async function useRankData(topListRef) {
  const res = await getTopList()
  if (res.code === 0) {
    topListRef.value = res.result.topList
  }
}

export default useRankData
